// The users module. If you do not need any specific features, you can
// leave it an empty object.
const data = {
  location: "branches",
  modal: {
    property: [
      {
        description: "",
        key: "createdAt",
        name: "创建时间",
        type: "input",
        value: "",
        disabled: true,
        edit: false,
        save: false,
        requre: false
      },
      {
        description: "",
        key: "lastModifiedAt",
        name: "更新时间",
        type: "input",
        value: "",
        disabled: false,
        edit: false,
        save: false,
        requre: false
      },
      {
        description: "",
        key: "name",
        name: "分支名",
        type: "input",
        value: "",
        disabled: false,
        edit: true,
        save: true,
        requre: true
      },
      {
        description: "",
        key: "description",
        name: "标题",
        type: "textarea",
        value: "",
        disabled: false,
        edit: true,
        save: true,
        requre: true
      },
      {
        description: "",
        key: "modifiesTimes",
        name: "修改次数",
        type: "input",
        value: "",
        disabled: false,
        edit: false,
        save: false,
        requre: false
      },
      {
        description: "",
        key: "isMaster",
        name: "是否是主分支",
        type: "select",
        value: "",
        disabled: false,
        edit: false,
        save: true,
        requre: true,
        options: [
          {
            value: true,
            text: "是主分支"
          },
          {
            value: 2,
            text: "不是主分支"
          }
        ]
      },
      {
        description: "",
        key: "_links",
        name: "链接",
        type: "input",
        disabled: true,
        edit: false
      }
    ]
  },
  table: {
    fields: [
      {
        key: "createdAt",
        label: "创建时间",
        sortable: true
      },
      {
        key: "lastModifiedAt",
        label: "更新时间",
        sortable: true
      },
      {
        key: "name",
        label: "分支名",
        sortable: true
      },
      {
        key: "description",
        label: "描述",
        sortable: true
      },
      {
        key: "isMaster",
        label: "主分支",
        sortable: true
      },
      {
        key: "operation",
        label: "操作",
        sortable: true
      }
    ]
  }
};
function match(key) {
  return data.property[key];
}

export default data;
// The posts module. You can add any additional things you want.
